package com.letoy.edu.vo;

import com.letoy.edu.entity.MajorInfo;
import com.letoy.edu.entity.StudentInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    private long studentId;
    private long majorId;
    private String userId;
    private long number;
    private String name;
    private String group;
    private MajorInfo majorInfo;
    private UserClean userClean;

    public Student(StudentInfo studentInfo, MajorInfo majorInfo, UserClean userClean) {
        this.studentId = studentInfo.getStudentId();
        this.majorId = studentInfo.getMajorId();
        this.userId = studentInfo.getUserId();
        this.number = studentInfo.getNumber();
        this.name = studentInfo.getName();
        this.group = studentInfo.getGroup();
        this.majorInfo = majorInfo;
        this.userClean = userClean;
    }


}
